import React from 'react';
import {useHistory,useLocation,useRouteMatch} from 'react-router-dom';
 const RootB = function () {
     const history = useHistory();
     const location = useLocation();
     const match = useRouteMatch();
     console.log(location, history,match);
    return (
        <>
            <button onClick={() => {history.push('/')}}>go back</button>
        </>
    )

};

 export default RootB;